Dynomotion

Group: DynoMotion Message: 49 From: Azd Md Date: 9/8/2009
Subject: Zero Point Return
Hi,
Is there any function to set the axis to another reference position simillar to Zero(n) without disabling the axis? In many cases the homing position is not the zero position of the axis. using chx->Position and chx->Dest works but in between no gurantee the axis will not move as the error develops.
Regards
Azed

Group: DynoMotion Message: 50 From: TK Date: 9/8/2009
Subject: Re: Zero Point Return

Hi Azed,

 

I’m not sure I understand your issue completely.  It is probably impossible to set your position without a possibility of at least one count change because a encoder might change at any instant.  I think the following procedure should work.   The WaitNextTimeSlice() will assure that the next few commands will execute without interruption.  EnableAxis() sets the Dest to the current Position so the Dest will always be guaranteed to be exactly the value specified. 

 

            WaitNextTimeSlice();

            DisableAxis(0); 

            ch0->Position = -1000.0;

            EnableAxis(0);

 

TK

 

Group: DynoMotion Message: 52 From: Azd Md Date: 9/9/2009
Subject: Re: Zero Point Return
Thanks alot


--- On Wed, 9/9/09, TK <tk@...> wrote:

From: TK <tk@...>
Subject: RE: [DynoMotion] Zero Point Return
To: DynoMotion@yahoogroups.com
Date: Wednesday, September 9, 2009, 1:26 PM

 

Hi Azed,

 

I’m not sure I understand your issue completely.  It is probably impossible to set your position without a possibility of at least one count change because a encoder might change at any instant.  I think the following procedure should work.   The WaitNextTimeSlice( ) will assure that the next few commands will execute without interruption.  EnableAxis() sets the Dest to the current Position so the Dest will always be guaranteed to be exactly the value specified. 

 

            WaitNextTimeSlice( );

            DisableAxis( 0); 

            ch0->Position = -1000.0;

            EnableAxis(0) ;

 

TK

 


From: DynoMotion@yahoogro ups.com [mailto:DynoMotion@ yahoogroups. com] On Behalf Of Azd Md
Sent: Tuesday, September 08, 2009 8:51 PM
To: DynoMotion@yahoogro ups.com
Subject: [DynoMotion] Zero Point Return

 

 

Hi,

Is there any function to set the axis to another reference position simillar to Zero(n) without disabling the axis? In many cases the homing position is not the zero position of the axis. using chx->Position and chx->Dest works but in between no gurantee the axis will not move as the error develops.
Regards

Azed